<!-- wrapper -->
<div id="wrapper">
	<header>
        <div class="container_12">
            <div class="grid_12">
                <!-- navigation menu -->
                <nav class="main-nav">
                    <ul>
                        <li><a href="/admin/index" title="Tablero"><span class="glyph cloud"></span> Tablero</a></li>
                        <li><a href="/admin/noticias" title="Noticias"><span class="glyph icon"></span> Noticias</a></li>
                        <li><a href="/admin/eventos" title="Eventos"><span class="glyph list"></span> Eventos</a></li>
                        <li><a href="/admin/galerias" title="Galer&iacute;as"><span class="glyph image"></span> Galer&iacute;as</a></li>
                        <li><a href="/admin/videos" title="Videos"><span class="glyph movie"></span> Videos</a></li>
                        <li class="active"><a href="/admin/revistas" title="Revistas"><span class="glyph attachment"></span> Revistas</a></li>
                        <li><a href="/admin/cartones" title="Cartones"><span class="glyph favorite"></span> Cartones</a></li>
                        <li><a href="/admin/contactos" title="Contactos"><span class="glyph user"></span> Contactos</a></li>
                        <li><a href="/admin/login" title="Salir"><span class="glyph logout"></span> Salir</a></li>
                    </ul>
                </nav>
                <!-- /navigation menu -->

                <!-- bar -->
                <ul class="bar">
                    <li>
                        <a title="Usuario">
                            <span class="glyph user"></span>
                            <span class="text"><?php echo $this->userName; ?></span>
                        </a>
                    </li>
                </ul>
            </div>                
        </div>
    </header>
    <section id="main">
        <div class="container_12">
            <div class="grid_12" id="content-top">
                <div id="logo">
                    <img src="<?php echo $this->baseUrl('admin/img/logo.png'); ?>" alt="Alejandro L&oacute;pez Caballero" />
                </div>
                <nav>
                    <ul>
                        <li>
                            <a href="/admin/revista">
                                <span class="glyph zoom-in"></span>
                                Revista
                            </a>
                        </li>
                        <li>
                            <a href="/index/index" target="_blank">
                                <span class="glyph open-in-new-window"></span>
                                Ver Sitio
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>

            <div id="content">

                <div class="main-box">

                    <!-- # Interactive tables -->
                    <header class="grid_12 head">
                        <h1>Revistas</h1>
                        <span class="divider"></span>
                    </header>

                    <!-- Media table -->
                    <div class="grid_12 boxed-table">
                        <div class="box">
                            <header>
                                <div class="inner">
                                    <div class="left title">
                                        <h1>Revistas Publicadas</h1>
                                    </div>
                                    <div class="right">
                                        <a href="#" class="close">Cerrar</a>
                                    </div>
                                </div>
                            </header>

                            <div class="box-content no-inner-space">
                                <table class="datatable five-per-page">
                                    <thead>
                                        <tr>
                                            <th class="check-all checkbox"><input type="checkbox" /></th>
                                            <th class="sorting_disabled small">Imagen</th>
                                            <th>T&iacute;tulo</th>
                                            <th class="small">Publicada</th>
                                            <th class="sorting_disabled small">Acciones</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <?php foreach($this->revistas as $r){ ?>
                                        <tr>
                                            <td class="checkbox"><input type="checkbox" /></td>
                                            <td class="center"><img src="/revistas/<?php echo $r["portada"]; ?>" width="120" height="130" alt="thumb" /></td>
                                            <td><a href="/admin/editrevista/id/<?php echo $r["id"]; ?>"><?php echo $r["edicion"]; ?></a></td>
                                            <td class="center"><?php echo date("d-m-Y", strtotime($r["fecha"])); ?></td>
                                            <td class="center">
                                                <a href="/admin/editrevista/id/<?php echo $r["id"]; ?>" class="tooltip glyph portrait-view" title="Editar"></a>
                                                <a href="/admin/deleterevista/id/<?php echo $r["id"]; ?>" class="tooltip glyph close" title="Eliminar"></a>
                                            </td>
                                        </tr>
                                    <?php } ?>
									</tbody>
                                </table>

                                <footer class="pane">
                                    <select>
                                        <option>Acciones en lote:</option>
                                        <option>Eliminar</option>
                                    </select>
                                </footer>
                            </div>
                        </div>
                    </div>
                    <!-- /Media table -->

                </div>
            </div>
        </div>
    </section>
</div>
<!-- /wrapper -->